package com.kingtao.enums;

/**
 * @Author: kingtao
 * @Date: 2023-07-24-9:54
 * @Description:
 */
public enum NodeStatusEnums {
    down(0, "宕机节点"),
    leader(1, "leader 节点"),
    secondLeader(2, "secondLeader 节点"),
    followerLeader(3, "followerLeader 节点"),
    follower(4, "follower 节点"),
    bft(5, "bft 节点")
    ;

    private int id;
    private String desc;

    NodeStatusEnums(int id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
